package com.example.bugly

import android.app.Application
import com.blankj.utilcode.util.SPUtils
import com.blankj.utilcode.util.ToastUtils
import com.tencent.bugly.crashreport.CrashReport

class App:Application() {
    override fun onCreate() {
        super.onCreate()
        initBugly()
    }
    private fun initBugly() {
        if(SPUtils.getInstance().getBoolean("bugly")){
            CrashReport.initCrashReport(this, "41b4ee4aa6", true);
        }
    }
}